package com.yuelao.yuelao_backend.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class UserMiningInfoDTO {
    private Long userId;
    private BigDecimal totalStakedAmount;
    private BigDecimal totalEarnedRewards;
    private List<StakingDetail> activeStakings;

    @Data
    public static class StakingDetail {
        private Long id;
        private Long poolId;
        private String poolName;
        private String tokenSymbol;
        private BigDecimal stakedAmount;
        private BigDecimal earnedRewards;
        private BigDecimal pendingRewards; // 实时未领取收益
        private BigDecimal apr;
        private LocalDateTime stakeTime;
        private LocalDateTime lastClaimTime;
    }
}